package cn.stylefeng.guns.modular.gridsystem.temperature.model.result;

import cn.stylefeng.guns.modular.gridsystem.temperature.model.param.BizTemperatureExceptionParam;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


@Data
public class BizTemperatureExceptionResult implements Serializable {

    private Integer id;
    private Integer deviceId; //关联的设备',
    private Integer errorType;
    private Integer gatewayId;//上报网关的编号',
    private Integer status;//故障处理状态（未处理，已处理）

    private String gatewayName;
    private String deviceName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private Integer countNum;

    //@DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    // 总结：DateTimeFormat用于前端传参，JsonFormat用于后端向前端返回数据解析。
}
